package com.qrxl.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qrxl.common.vo.BaseQuery;
import com.qrxl.common.vo.req.IdReq;
import com.qrxl.user.entity.Role;
import com.qrxl.user.vo.UserLoginInfo;
import com.qrxl.user.vo.req.RoleAddReq;
import com.qrxl.user.vo.req.RoleUpdateReq;
import com.qrxl.user.vo.res.RoleListRes;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author friday
 * @since 2020-12-05
 */
public interface IRoleService extends IService<Role> {

    void add(RoleAddReq req);

    IPage<RoleListRes> selectPage(BaseQuery baseQuery, Role req);

    void updateVo(RoleUpdateReq req, UserLoginInfo ul);

    List<Role> selectListByUserId(String loginId);

    void delete(IdReq req, UserLoginInfo userLoginInfo);
}
